<template>
  <div class="entries_wrap"> 
    <van-swipe class="my-swipe" :loop="false" :autoplay="0" indicator-color="#009eef">
      <van-swipe-item v-for="(list,index) in entries" :key="index">
        <div class="entries">
          <div class="item" v-for="(item,index) in list">
            <img :src="item.image"  />
            <div>{{item.name}}</div>
          </div>
        </div>
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
import { Swipe, SwipeItem } from "vant";
export default {
  components: {
    [Swipe.name]: Swipe,
    [SwipeItem.name]: SwipeItem
  },
  props: {
    entries: {
      type: Array,
      default() {
        return [];
      }
    }
  }
};
</script>

<style scoped>
.entries_wrap{
  height: 180px;
}
.entries{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}
.item{
  width: 20%;
  font-size: 12px;
  margin-top:10px;
}
img {
  width: 45px;
  height: 45px;
}
/deep/ .van-swipe__indicators{
  bottom: 18px;
}
/deep/ .van-swipe__indicator{
  width: 10px;
  height: 10px;
}
/deep/ .van-swipe{
  height: 100%;
}
</style>